package com.aqumon.www.entity.request.jenkins;
import com.aqumon.www.entity.request.ParamValidate;
import lombok.Data;


@Data
public class BuildQueryReq implements ParamValidate {

    private String scriptId;


    private Integer pageNum;

    private Integer pageSize;

    @Override
    public void validate() {
        if (scriptId == null) {
            throw new IllegalArgumentException("scriptId 不能为空");
        }
    }

    public BuildQueryReq(String scriptId, Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}

